<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ctlFrmFichaInvitado.ascx.vb" Inherits="Pages_Controls_ctlFrmFichaInvitado" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxUploadControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTabControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxClasses" TagPrefix="dx" %>
    <script type="text/javascript">
        // <![CDATA[
            var startTime;
            function OnBeginCallback() {
                startTime = new Date();
            }
            
            function OnEndCallback() {
                var result = new Date() - startTime;
                result /= 1000;
                result = result.toString();
                if(result.length > 4)
                    result = result.substr(0, 4);
                time.SetText(result.toString() + " sec");
                label.SetText("Time to retrieve the last data:");
            }
        // ]]> 
        </script>

<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <table width="100%">
            <tr>
                <td style="width: 321px; height: 26px">
                    <dx:ASPxButton ID="btnGrabar" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" OnClick="btnGrabar_Click" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Text="Grabar">
                        <Image Url="~/Images/icons/page_save.png">
                        </Image>
                    </dx:ASPxButton>
                </td>
                <td style="width: 173px; height: 26px">
                </td>
            </tr>
            <tr>
                <td style="width: 321px; height: 26px">
                    <dx:ASPxTextBox ID="txtInvitadoID" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Text="0" Width="170px" ClientVisible="False">
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                    <dx:ASPxTextBox ID="txtPersonaID" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Text="0" Width="170px" ClientVisible="False">
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                    </dx:ASPxTextBox><dx:ASPxTextBox ID="txtTitularID" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Text="0" Width="170px" ClientVisible="False">
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </td>
                <td style="width: 173px; height: 26px">
                    &nbsp; &nbsp;&nbsp;
                </td>
            </tr>
            <tr>
                <td style="width: 321px; height: 26px">
                    &nbsp;<dx:ASPxLabel ID="lblCodPersona" runat="server" Font-Bold="True" Text="Cod Persona:">
                    </dx:ASPxLabel>
                </td>
                <td style="width: 173px; height: 26px">
                    &nbsp;<dx:ASPxTextBox ID="txtCodPersona" runat="server" ClientEnabled="False" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Text="0" Width="170px">
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 321px; height: 26px">
                    <dx:ASPxLabel ID="lblNombre" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" Text="Nombre :">
                    </dx:ASPxLabel>
                </td>
                <td style="width: 173px; height: 26px">
                    <dx:ASPxTextBox ID="txtNombres" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Width="170px">
                        <ValidationSettings ErrorText="Ingrese Nombre" SetFocusOnError="True">
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                            <RequiredField ErrorText="Ingrese Nombre" IsRequired="True" />
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 321px; height: 26px">
                    <dx:ASPxLabel ID="lblApellidoPaterno" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" Text="Apellido Paterno:">
                    </dx:ASPxLabel>
                </td>
                <td style="width: 173px; height: 26px">
                    <dx:ASPxTextBox ID="txtApellidoPaterno" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Width="170px">
                        <ValidationSettings SetFocusOnError="True">
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                            <RequiredField ErrorText="Ingrese Apellido" IsRequired="True" />
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 321px; height: 26px">
                    <dx:ASPxLabel ID="lblApellidoMaterno" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" Text="Apellido Materno:" Width="112px">
                    </dx:ASPxLabel>
                </td>
                <td style="width: 173px; height: 26px">
                    <dx:ASPxTextBox ID="txtApellidoMaterno" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Width="170px">
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 321px; height: 26px">
                    <dx:ASPxLabel ID="lblTipoDocumento" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" Text="Tipo Documento :">
                    </dx:ASPxLabel>
                    &nbsp;
                </td>
                <td style="width: 173px; height: 26px">
                    &nbsp;<dx:ASPxComboBox ID="cmbTipoDocumento" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" LoadingPanelImagePosition="Bottom" ShowShadow="False" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        ValueType="System.Int32">
                        <Items>
                            <dx:ListEditItem Text="DNI" Value="0" />
                            <dx:ListEditItem Text="CE" Value="0" />
                        </Items>
                        <LoadingPanelImage Url="~/App_Themes/Youthful/Editors/Loading.gif">
                        </LoadingPanelImage>
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                    </dx:ASPxComboBox>
                </td>
            </tr>
            <tr>
                <td style="width: 321px; height: 26px">
                    <dx:ASPxLabel ID="lblNumeroDocumento" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" Text="Numero Documento:" Width="141px">
                    </dx:ASPxLabel>
                    &nbsp;&nbsp;
                </td>
                <td style="width: 173px; height: 26px">
                    &nbsp;
                    <dx:ASPxTextBox ID="txtNumeroDocumento" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css"
                        Width="170px">
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                            <RequiredField ErrorText="*Ingrese numero de documento" IsRequired="True" />
                        </ValidationSettings>
                    </dx:ASPxTextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 321px; height: 26px">
                    &nbsp;<dx:ASPxCheckBox ID="chkRegistrarIngreso" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" OnCheckedChanged="chkRegistrarIngreso_CheckedChanged"
                        SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css" Text="Registrar Ingreso"
                        TextSpacing="2px" Width="161px" AutoPostBack="True">
                    </dx:ASPxCheckBox>
                </td>
                <td style="width: 173px; height: 26px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="width: 321px; height: 26px">
                    <dx:ASPxLabel ID="lblSocio" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" Text="Socio:" ClientVisible="False">
                    </dx:ASPxLabel>
                </td>
                <td style="width: 173px; height: 26px">
                    <dx:ASPxLabel ID="lblNombreSocio" runat="server" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" Font-Bold="True" ClientVisible="False">
                    </dx:ASPxLabel>
                    <dx:ASPxComboBox ID="cmbTitular" runat="server" ClientVisible="False" CssFilePath="~/App_Themes/Youthful/{0}/styles.css"
                        CssPostfix="Youthful" DataSourceID="ObjectDataSourcePersonas" LoadingPanelImagePosition="Bottom"
                        ShowShadow="False" SpriteCssFilePath="~/App_Themes/Youthful/{0}/sprite.css" TextField="Nombre"
                        ValueField="ID" ValueType="System.Int32" IncrementalFilteringDelay="10" IncrementalFilteringMode="Contains">
                        <LoadingPanelImage Url="~/App_Themes/Youthful/Editors/Loading.gif">
                        </LoadingPanelImage>
                        <ValidationSettings>
                            <ErrorFrameStyle ImageSpacing="4px">
                                <ErrorTextPaddings PaddingLeft="4px" />
                            </ErrorFrameStyle>
                        </ValidationSettings>
                        <ClientSideEvents BeginCallback="function(s, e) { OnBeginCallback(); }" EndCallback="function(s, e) { OnEndCallback(); } " />

                    </dx:ASPxComboBox>
                </td>
            </tr>
            <tr style="font-size: 12pt; font-family: Times New Roman">
                <td colspan="2" style="height: 26px">
                    &nbsp;<dx:ASPxLabel ID="lblMensaje" runat="server" ForeColor="#CC0000" Visible="False"
                        Width="689px" ClientVisible="False">
                    </dx:ASPxLabel>
                </td>
            </tr>
        </table>
        <asp:ObjectDataSource ID="ObjectDataSourcePersonas" runat="server" OldValuesParameterFormatString="original_{0}"
            SelectMethod="GetNombrePersonaSocio" TypeName="BusinessLogic.crFichaInscripcion"></asp:ObjectDataSource>
      
    </ContentTemplate>
</asp:UpdatePanel>
